package com.heima;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @Author 刘旭
 * @Date 2022/8/31 22:33
 * @Description:
 */
public class Main {
    /*public static void main(String[] args) {

        long s = System.currentTimeMillis();

        StringBuffer a = new StringBuffer("0");
//        StringBuilder a = new StringBuilder("0");
        for (int i = 1; i <= 10000; i++) {
            a.append(i);
        }
        System.out.println(a);
        long e = System.currentTimeMillis();
        System.out.println(e-s);// 831 27 30
    }*/


    public static void main(String[] args) {


        ArrayList<String> list1 = new ArrayList<>();
        list1.add("aa");list1.add("aa");list1.add("aa");
        ArrayList<String> list2 = new ArrayList<>();
        list2.add("bb");list2.add("bb");
        System.out.println(list1);

        list1.addAll(list2);


        System.out.println(list1);

    }

}